
LIBNAME=libwddialspd.a

CC := $(CROSSCOMPILE)gcc
AR := $(CROSSCOMPILE)ar

CFLAGS += -I../libwdbase/include -I../libghttp -I../libwdcap/include
ifeq ($(BRIDGE_MODE_SUPPORT),1)
CFLAGS += -DBRIDGE_MODE_SUPPORT
endif

SOURCE=$(wildcard *.c)
OBJS=$(subst .c,.o,$(SOURCE))


all: $(LIBNAME) 


$(LIBNAME): $(OBJS) 
	$(AR) rcs $(LIBNAME) $(OBJS) 

%.o:%.c
	$(CC) -c $(CFLAGS) $< -o $@ 

clean:
	rm *.o -f;
	rm *.a -f;

.PHONY: clean all 
